import request from './http.util.js'

// 亨通港url
const htgPortUrl = {
	getWorkorderListM: {
		path: '/HTG-PORT/model/workorder/list_taskinfo',
		method: 'POST',
		contenttype: 'application/x-www-form-urlencoded'
	},
	getfromdwpmachines: {
		path: '/HTG-PORT/model/car/getfromdwpmachines',
		method: 'POST',
		contenttype: 'application/x-www-form-urlencoded'
	},
	saveTaskToCar: { 
		path: '/HTG-PORT/model/tasktocar/work_save',
		method: 'POST',
		contenttype: 'application/json'
	},
	checkTaskToCar: { 
		path: '/HTG-PORT/model/tasktocar/work_check',
		method: 'POST',
		contenttype: 'application/json'
	}
}

// 云平台url
const cloudPortUrl = {
	listMember: {
		path: '/PORT-CLOUD/member/list',
		method: 'GET',
		contenttype: ''
	},
	regMember: {
		path: '/PORT-CLOUD/member/reg',
		method: 'POST',
		contenttype: 'application/x-www-form-urlencoded'
	},
	getSession: {
		path: '/PORT-CLOUD/member/jscode2session',
		method: 'GET',
		contenttype: ''
	}
}

// 司机办单----收箱 提箱
const driverUrl = {
	TX1: {
		path: '/zlkj/wechat/TX1&tel=',
		method: 'get'
	},
	TX2: {
		path: '/zlkj/wechat/TX2&tel=',
		method: 'get'
	},
	TX3: {
		path: '/zlkj/wechat/TX3&tel=',
		method: 'get'
	},
	TX4: {
		path: '/zlkj/wechat/TX4&tel=',
		method: 'get'
	}
}

export default {
	htgPortUrl,
	cloudPortUrl,
	driverUrl
}